home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Mud 4.0 / nlhack.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-30  |  1.3 KB  |  76 lines  |  [TEXT/MPS ]

  1. /*
  2.  * Defines for nlhack-specific things
  3.  */
  4.  
  5. /*
  6.  * Max. lines for explode_file()
  7.  */
  8. #define MAX_EXPLODE_FILE_LINES 500
  9.  
  10. /*
  11.  * Do we log writes in /open ?
  12.  */
  13. #define LOG_OPEN
  14.  
  15. /*
  16.  * Max lines for output
  17.  */
  18. #define MAX_LINES 50
  19.  
  20. /*
  21.  * Some defines for system-differences
  22.  */
  23.  
  24. #ifndef S_ISDIR
  25. #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
  26. #endif
  27.  
  28. /*
  29.  * Define this if your readdir() returns a 'struct dirent' on your
  30.  * system, in stead of the (older) 'struct direct'.
  31.  */
  32. #undef DIRENT
  33.  
  34. /* 
  35.  * Define this if your system does not have strftime()
  36.  */
  37. #define NOSTRFTIME
  38.  
  39. /*
  40.  * maximum size of grep'ed files
  41.  */
  42. #define GREP_FILE_SIZE 25000
  43.  
  44. /*
  45.  * maximum number of files to be grep'ed at once 
  46.  */
  47. #define MAX_GREP_SIZE 10
  48.  
  49. /*
  50.  * temporary grep-file. Choose it outside the mudlib.
  51.  */
  52. #define GREP_FILE "/tmp/grep_temp"
  53.  
  54. /*
  55.  * Level of arches/gods
  56.  */
  57.  
  58. #define ARCH_LEVEL 24
  59.  
  60. #define GOD_LEVEL 1000
  61.  
  62. /*
  63.  * Prototypes
  64.  */
  65.  
  66. int nlhack PROT((int, char *, struct svalue *, struct svalue *, int));
  67. int visible PROT((struct object *));
  68. void set_eff_user PROT((struct object *));
  69. struct vector *all_inventory PROT((struct object *));
  70. struct vector *users PROT((void));
  71. void init_nlhack PROT((void));
  72. void log_sbrk PROT((unsigned));
  73. int log_admin_check PROT((char *));
  74. int remove_file PROT((char *));
  75. int all_cap PROT((char *));
  76.